/*
 * Created by Christopher King
 * Copyright (C) 2007 Christopher King, All Rights Reserved.
 */

package us.cirion.adventure.engine;

/**
 * Player represents state related to the current player of the game. It
 * includes the current location in the game world and the player's inventory.
 * 
 * @author Chris
 */
public class Player extends ItemLocation
{

	private Room currentLocation;

	Player()
	{
		super();
	}

	/**
	 * Retrieves the player's current location.
	 * 
	 * @return The Room where the player is currently located.
	 */
	public Room getCurrentLocation()
	{
		return currentLocation;
	}

	/**
	 * Sets the player's current location.
	 * 
	 * @param currentLocation The Room that will hold the player.
	 */
	public void setCurrentLocation(Room currentLocation)
	{
		this.currentLocation = currentLocation;
	}

	/**
	 * Provides a program-readable name for the player inventory.
	 * 
	 * @return The inventory string.
	 */
	public String toString()
	{
		return Game.INVENTORY_STRING;
	}

}
